package com.park.web.job;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.quartz.DisallowConcurrentExecution;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

import com.park.client.model.user.UserModel;
import com.park.client.service.user.UserService;

import lombok.extern.slf4j.Slf4j;
/**
 * 用户等级根据积分修改
 * @author daihuajun
 */
@DisallowConcurrentExecution
@Slf4j
public class UserGradeUpdateJob implements Job{

	@Autowired
	private UserService userService;
	
	@Override
	public void execute(JobExecutionContext context) throws JobExecutionException {
		try {
			UserModel user = userService.login("admin");
		} catch (Exception e) {
			log.error(e.getMessage());
		}
		
	}

}
